<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../css/bootstrap4.5.min.css">
    <link rel="stylesheet" href="../css/public.css">
    <script src="../js/jquery-3.5.1.min.js"></script>
    <style>
        .img_collection_headarea_p {
            font-size: var(--f_text);
            line-height: var(--l_text);
            color: var(--c_text);
            padding: 0px 20px;
        }

        .img_collection_flex {
            display: flex;
            flex-wrap: wrap;
        }

        .img_collection_flex li {
            width: 33.3%;
            padding: 20px 20px 40px 20px;
            overflow: hidden;
        }

        .img_collection_flex li:hover {
            box-shadow: 0px 0px 10px #ddd;
        }

        .img_collection_flex li img {
            width: 100%;
            height: 429px;
        }

        .img_collection_flex li {
            text-align: center;
        }

        .img_collection_flex li p {
            margin-top: 16px;
        }

        .img_collection_categories {
            display: flex;
            padding: 10px 20px;
            flex-wrap: wrap;
        }

        .img_collection_categories > li {
            width: 25%;
            padding: 10px;
            border-bottom: 1px solid var(--c_b_dark);
            border-right: 1px solid var(--c_b_dark);
        }
        .img_collection_categories > li:nth-child(4n+4) {
            border-right:none
        }
        .img_collection_categories > li:nth-child(n+5) {
            border-bottom: none;
        }

        .img_collection_sub_categories {
            display: flex;
            flex-wrap: wrap;
        }

        .img_collection_sub_categories li {
            color: var(--c_tips);
            font-size: var(--f_describe);
            line-height: var(--l_text);
            margin: auto 5px;
        }

        .img_collection_categories_sign {
            display: none;
        }

        @media (max-width:1040px) {
            .img_collection_sub_categories {
                flex-direction: column;
            }

            .img_collection_categories li {
                width: 100%;
                height: 50px;
                padding: 0px;
                border-right: none;
                overflow: hidden;
            }

            .img_collection_categories li span {
                width: 100%;
                line-height: 50px;
                height: 50px;
                border-bottom: 1px solid var(--c_b_dark);
                display: block;
            }

            .img_collection_categories {
                flex-direction: column;
            }

            .img_collection_sub_categories li {
                width: 100%;
                height: 50px;
                padding-left: 30px;
                line-height: 50px;
                border-bottom: 1px solid var(--c_b_dark);
            }

            .img_collection_categories_sign {
                float: right;
                display: block;
                height: 50px;
                transition: transform 0.3s;
                object-fit: scale-down;
            }

            .img_collection_categories_sign_opening .img_collection_categories_sign {
                transform: rotate(90deg);
            }

            li.img_collection_categories_sign_opening {
                height: auto;
                overflow: visible;
            }
        }

        @media (max-width:1240px) {
            .img_collection_flex li img {
                height: 318px;
            }
        }

        @media (max-width:768px) {
            .img_collection_flex li {
                width: 50%;
            }

            .img_collection_flex li:nth-child(odd) {
                padding-right: 10px;
            }

            .img_collection_flex li:nth-child(even) {
                padding-left: 10px;
            }
        }

        @media (max-width:768px) {
            .img_collection_flex li img {
                height: 200px;
            }
        }
    </style>
    <script>
        $(function () {
            document.querySelectorAll('.img_collection_categories > li').forEach(function (element) {
                element.addEventListener('click', function () {
                    let has = element.classList.contains('img_collection_categories_sign_opening')
                    if (has) {
                        element.classList.remove('img_collection_categories_sign_opening')
                    } else {
                        element.classList.add('img_collection_categories_sign_opening')
                    }
                })
            })
            window.addEventListener('resize', function () {
                if (window.innerWidth >= 1040) {
                    document.querySelectorAll('.img_collection_categories > li').forEach(function (element) {
                        element.classList.remove('img_collection_categories_sign_opening')
                    })
                }
            })
        })
    </script>
</head>

<body>
    <div class="img_collection modular public_width title_center">
        <div class="img_collection_headarea">
            <div class="public_title">
                <h2>雕塑产品</h2>
                <p>PRODUCTS</p>

                <a href="">
                    <p class="img_collection_headarea_p">
                        XX雕塑公司专注于城市、企业、商业、人物、不锈钢、
                        园林、肖像等创意主题雕塑设计，XX雕塑公司结合雕塑设计、
                        生产、加工、运输、安装、售后等一体化服务以及艺术
                        活动组织策划的全方位整体解决方案的综合型文化企业，
                        拥有2000平米北京雕塑加工厂与2000平米山东雕塑加工厂...
                    </p>
                </a>
            </div>
        </div>
        <ul class="img_collection_categories">
            <li>
                <span>石头雕塑
                    <img class=" img_collection_categories_sign" src="../images/gt.png" alt="">
                </span>
                <ul class="img_collection_sub_categories">
                    <li><a>分类一</a></li>
                    <li><a>分类一</a></li>
                </ul>
            </li>
            <li>
                <span>石头雕塑
                    <img class=" img_collection_categories_sign" src="../images/gt.png" alt="">
                </span>
                <ul class="img_collection_sub_categories">
                    <li><a>分类一</a></li>
                    <li><a>分类一</a></li>
                </ul>
            </li>
            <li>
                <span>石头雕塑
                    <img class=" img_collection_categories_sign" src="../images/gt.png" alt="">
                </span>
                <ul class="img_collection_sub_categories">
                    <li><a>分类一</a></li>
                    <li><a>分类一</a></li>
                </ul>
            </li>
            <li>
                <span>石头雕塑
                    <img class=" img_collection_categories_sign" src="../images/gt.png" alt="">
                </span>
                <ul class="img_collection_sub_categories">
                    <li><a>分类一</a></li>
                    <li><a>分类一</a></li>
                </ul>
            </li>
            <li>
                <span>石头雕塑
                    <img class=" img_collection_categories_sign" src="../images/gt.png" alt="">
                </span>
                <ul class="img_collection_sub_categories">
                    <li><a>分类一</a></li>
                    <li><a>分类一</a></li>
                </ul>
            </li>
            <li>
                <span>石头雕塑
                    <img class=" img_collection_categories_sign" src="../images/gt.png" alt="">
                </span>
                <ul class="img_collection_sub_categories">
                    <li><a>分类一</a></li>
                    <li><a>分类一</a></li>
                </ul>
            </li>
            <li>
                <span>石头雕塑
                    <img class=" img_collection_categories_sign" src="../images/gt.png" alt="">
                </span>
                <ul class="img_collection_sub_categories">
                    <li><a>分类一</a></li>
                    <li><a>分类一</a></li>
                </ul>
            </li>
            <li>
                <span>石头雕塑
                    <img class=" img_collection_categories_sign" src="../images/gt.png" alt="">
                </span>
                <ul class="img_collection_sub_categories">
                    <li><a>分类一</a></li>
                    <li><a>分类一</a></li>
                </ul>
            </li>
        </ul>
        <ul class="img_collection_flex">
            <li>
                <a href="" class="img_collection_flex_box">
                    <a href=""><img src="https://21217127.s61i.faiusr.com/2/AD0I5-6OChACGAAgwPKc8wUoqNzj2AcwgAY4gAY.jpg"
                            alt=""></a>
                    <a href="">
                        <p>裸体男人雕像</p>
                    </a>
                    <a href="">
                        <p>￥40590</p>
                    </a>
                </a>
            </li>
            <li>
                <a href="" class="img_collection_flex_box">
                    <a href=""><img src="https://21217127.s61i.faiusr.com/2/AD0I5-6OChACGAAgwPKc8wUoqNzj2AcwgAY4gAY.jpg"
                            alt=""></a>
                    <a href="">
                        <p>裸体男人雕像</p>
                    </a>
                    <a href="">
                        <p>￥40590</p>
                    </a>
                </a>
            </li>
            <li>
                <a href="" class="img_collection_flex_box">
                    <a href=""><img src="https://21217127.s61i.faiusr.com/2/AD0I5-6OChACGAAgwPKc8wUoqNzj2AcwgAY4gAY.jpg"
                            alt=""></a>
                    <a href="">
                        <p>裸体男人雕像</p>
                    </a>
                    <a href="">
                        <p>￥40590</p>
                    </a>
                </a>
            </li>
            <li>
                <a href="" class="img_collection_flex_box">
                    <a href=""><img src="https://21217127.s61i.faiusr.com/2/AD0I5-6OChACGAAgwPKc8wUoqNzj2AcwgAY4gAY.jpg"
                            alt=""></a>
                    <a href="">
                        <p>裸体男人雕像</p>
                    </a>
                    <a href="">
                        <p>￥40590</p>
                    </a>
                </a>
            </li>
        </ul>
    </div>
</body>

</html>